package com.common.utf;

import java.io.UnsupportedEncodingException;

public class StringLength {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s1 = new String("中文123".getBytes(),"utf-16");
        System.out.println(s1.length());
        System.out.println(s1.getBytes().length);


    }
}
